# -*- coding: utf-8 -*-
"""
状态码信息定义
@author:lf
20210722
"""
SUCCESS = 0
BadRequest = 400
ERROR = 500

LoginFailed = 1000
InvalidParams = 1001
InvalidAccount = 1002
InvalidPassword = 1003
InvalidCode = 1004
WrongCode = 1005
ExistedPhone = 1006
ExistedAccount = 1007
TooManyFails = 1008
RepeatSendCode = 1009

DeviceIDExit = 2000
TokenExpired = 2001
InvalidToken = 2002
NoJwtToken = 2003

ErrorCode = {
    SUCCESS: 'ok',
    BadRequest: '请求参数错误!',
    ERROR: 'fail',
    LoginFailed: '错误的用户名或密码！',
    InvalidParams: '输入参数错误!',
    InvalidAccount: '账号不存在!',
    InvalidPassword: '密码错误!',
    InvalidCode: '验证码已失效！',
    WrongCode: '验证码验证失败！',
    ExistedPhone: '手机号已存在！',
    ExistedAccount: '账号已存在！',
    TooManyFails: '登录失败次数超过限制！',
    RepeatSendCode: '验证码已发送，请勿重复点击1',
    DeviceIDExit: '该设备序列号已添加！',
    TokenExpired: 'Token过期！',
    InvalidToken: 'Token不合法！',
    NoJwtToken: '无JWT Token'
}